//
//  attachmentCell.swift
//  LearnDemo
//
//  Created by 振轩 on 2018/4/9.
//  Copyright © 2018年 振轩. All rights reserved.
//

import UIKit

class attachmentCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    @IBOutlet weak var downLoadBTN: UIButton!
    @IBOutlet weak var nameLabel: UILabel!
    
    @IBOutlet weak var countLabel: UILabel!
    
    @IBOutlet weak var iconImageView: UIImageView!
    var mode:AttatchMode?{
        didSet{
          nameLabel.text = mode?.fileName
            countLabel.text = "\(Int((mode?.fileSize!)!)!/1000)"+"kb"
            
            
        }
        
        
        
    }
    
}
